package com.ctbri.enums;

import java.util.Random;

enum CartoonCharacterStatic {
	SLAPPY,SPANKY, PUNCHY, SILLY, BOUNCYM, NUTTY, BOB;
	private static Random rand = new Random(47);
	public static CartoonCharacterStatic next() {
		return values()[rand.nextInt(values().length)];
	}
}
public class Ex2 {
	public static <T> void printNext() {
		System.out.print(CartoonCharacterStatic.next() + ", ");
	}
	
	public static void main(String[] args) {
		for(int i = 0; i < 10; i++)
			printNext();
	}
}
